/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 64px 0 0;
}

.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--text-secondary);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== TERMINAL ==================== */
.hero-terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.terminal-tabs {
  display: flex;
  gap: 0.25rem;
}

.terminal-tab {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.terminal-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.terminal-tab:hover:not(.active) {
  color: var(--text-secondary);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.exchange-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exchange-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.exchange-icon.binance {
  color: #f0b90b;
  border-color: rgba(240, 185, 11, 0.3);
}

.exchange-icon.okx {
  color: #fff;
}

.exchange-icon.htx {
  color: #2e67f5;
  border-color: rgba(46, 103, 245, 0.3);
}

.exchange-icon.bybit {
  color: #f7a600;
  border-color: rgba(247, 166, 0, 0.3);
}

.exchange-icon.kraken {
  color: #5741d9;
  border-color: rgba(87, 65, 217, 0.3);
}

.exchange-icon.deribit {
  color: #00d395;
  border-color: rgba(0, 211, 149, 0.3);
}

.exchange-name {
  font-weight: 500;
  color: var(--text-primary);
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--green);
}

.status-dot.degraded {
  background: var(--orange);
}

.status-text {
  color: var(--text-secondary);
}

.change-positive {
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}

.change-negative {
  color: var(--red);
  font-family: 'JetBrains Mono', monospace;
}

/* ==================== NETWORK VISUALIZATION ==================== */
.network-visual {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(102, 184, 234, 0.05) 0%, transparent 70%);
}

#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.network-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.network-label {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: labelFloat 32s ease-in-out infinite;
}

.network-label:nth-child(1) {
  animation-delay: 0s;
}

.network-label:nth-child(2) {
  animation-delay: 3.2s;
}

.network-label:nth-child(3) {
  animation-delay: 6.4s;
}

.network-label:nth-child(4) {
  animation-delay: 9.6s;
}

.network-label:nth-child(5) {
  animation-delay: 12.8s;
}

.network-label:nth-child(6) {
  animation-delay: 16s;
}

.network-label:nth-child(7) {
  animation-delay: 19.2s;
}

.network-label:nth-child(8) {
  animation-delay: 22.4s;
}

.network-label:nth-child(9) {
  animation-delay: 25.6s;
}

.network-label:nth-child(10) {
  animation-delay: 28.8s;
}

@keyframes labelFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(10px);
  }
  8%, 92% {
    opacity: 1;
    transform: translateY(0);
  }
  12% {
    transform: translateY(-3px);
  }
  25% {
    transform: translateY(2px);
  }
  38% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
  63% {
    transform: translateY(-1px);
  }
  75% {
    transform: translateY(2px);
  }
}

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

.network-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.center-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 1px solid rgba(102, 184, 234, 0.25);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}

.center-ring.ring-2 {
  width: 180px;
  height: 180px;
  border-color: rgba(102, 184, 234, 0.12);
  animation-delay: 0.5s;
}

@keyframes ringPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.2;
  }
}

.center-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(102, 184, 234, 0.35) 0%, rgba(102, 184, 234, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  animation: corePulse 2s ease-in-out infinite;
}

.center-core::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(102, 184, 234, 0.6);
}

@keyframes corePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* ==================== TICKER BAR ==================== */
.ticker-bar {
  background: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

.ticker-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ticker-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ticker-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.ticker-change.up {
  color: var(--green);
}

.ticker-change.down {
  color: var(--red);
}

/* ==================== FEATURES ==================== */
.features-section {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1440px;
  margin: 0 auto;
}

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

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2rem;
  transition: background 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-tertiary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

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

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== EXCHANGES ==================== */
.exchanges-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.exchanges-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.exchanges-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

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

.exchange-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.exchange-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.exchange-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.exchange-card-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.exchange-card-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--green);
}

.exchange-card-status .dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

.exchange-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.exchange-card-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.exchange-card-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.exchange-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.exchange-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
}

.exchange-stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==================== PROCESS ==================== */
.process-section {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.process-inner {
  max-width: 1440px;
  margin: 0 auto;
}

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

.process-step {
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -1rem;
  width: calc(100% - 48px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-light), transparent);
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== SECURITY ==================== */
.security-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.security-inner {
  max-width: 1440px;
  margin: 0 auto;
}

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

.security-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.security-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(102, 184, 234, 0.1);
  border: 1px solid rgba(102, 184, 234, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.security-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.security-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==================== CTA ==================== */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .hero-terminal {
    max-width: 100%;
  }

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

  .network-visual {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-main {
    padding: 2rem 1.5rem;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .features-grid,
  .process-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .exchanges-grid {
    grid-template-columns: 1fr;
  }

  .network-visual {
    height: 350px;
  }

  .network-label {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
}


