/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #09090b;
  --bg-card: #111113;
  --bg-card-hover: #18181b;
  --accent: #2a5bb8;
  --accent-mid: #3970d9;
  --accent-light: #4a82e6;
  --accent-bright: #6b9ef0;
  --accent-glow: rgba(57, 112, 217, 0.35);
  --text-primary: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(57, 112, 217, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== Background Grid ===== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 8%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,1) 35%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 8%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,1) 35%);
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid var(--border);
}


.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.verified-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-mid) 0%, #160bd4 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(22, 11, 212, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(22, 11, 212, 0.4);
  transform: translateY(-1px);
}

/* Light/white button style for footer */
.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-weight: 600;
  padding: 14px 28px;
  position: relative;
  box-shadow: 0 8px 30px rgba(57, 112, 217, 0.15);
}

.btn-light::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  right: 10%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent-bright));
  opacity: 0.8;
  filter: blur(3px);
}

.btn-light:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(57, 112, 217, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  padding: 12px 28px;
}

.btn-outline:hover {
  background: rgba(57, 112, 217, 0.1);
  border-color: var(--accent-light);
}

/* Small blue gradient pill button for table rows */
.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent-mid) 0%, #160bd4 100%);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(22, 11, 212, 0.25);
}

.btn-sm:hover {
  box-shadow: 0 4px 16px rgba(22, 11, 212, 0.4);
  transform: translateY(-1px);
}

.btn-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.btn-link:hover {
  gap: 10px;
}

.arrow {
  transition: transform 0.3s ease;
}

.btn:hover .arrow,
.btn-link:hover .arrow,
.btn-sm:hover .arrow {
  transform: translateX(3px);
}

/* ===== Hero Section ===== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(57, 112, 217, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Stats Container ===== */
.stats-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 24px;
  border: 1px solid rgba(57, 112, 217, 0.4);
  border-radius: 20px;
  box-shadow:
    0 0 15px rgba(57, 112, 217, 0.1),
    0 0 40px rgba(57, 112, 217, 0.05),
    inset 0 0 15px rgba(57, 112, 217, 0.03);
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 20px;
  overflow: hidden;
}

.stat-card {
  background: rgba(9, 9, 11, 0.7);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.3s ease;
  position: relative;
  border-right: 1px solid rgba(57, 112, 217, 0.15);
}

.stat-card:last-child {
  border-right: none;
}

.stat-card:hover {
  background: rgba(17, 17, 19, 0.9);
}

.stat-icon {
  color: var(--accent-bright);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  position: relative;
}

.stat-icon svg {
  filter: drop-shadow(0 0 8px rgba(57, 112, 217, 0.5));
  opacity: 0.8;
}

.stat-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 30%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(57, 112, 217, 0.3));
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ===== Realtime Note ===== */
.realtime-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 24px 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(57, 112, 217, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(57, 112, 217, 0); }
}

/* ===== Partners Bar ===== */
.partners-bar {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.partner-logos {
  display: flex;
  gap: 40px;
  align-items: center;
}

.partner-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-title em {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ===== Track Record ===== */
.track-record {
  padding: 100px 0;
}

/* Featured Cards - Full gradient background like Figma */
.featured-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-card-inner {
  background: linear-gradient(90deg, var(--accent-mid) 0%, #160bd4 100%);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(57, 112, 217, 0.3);
}

.featured-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(57, 112, 217, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.featured-card-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.featured-card:hover .featured-card-inner {
  background: linear-gradient(90deg, var(--accent-light) 0%, #1e10e0 100%);
}

.featured-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.project-icon-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-mid), #160bd4);
  border-radius: 50%;
}

.featured-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.featured-ticker {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.featured-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.featured-stat-item {
  display: flex;
  flex-direction: column;
}

.featured-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.featured-stat-value {
  font-size: 16px;
  font-weight: 700;
}

.featured-x {
  color: #4ade80;
}

/* ===== Projects Table ===== */
.projects-table-wrapper {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.projects-table-header {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 1fr 80px 140px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 1fr 80px 140px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.project-row:last-child {
  border-bottom: none;
}

.project-row:hover {
  background: rgba(57, 112, 217, 0.03);
}

.project-rank {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 14px;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.project-name-group {
  display: flex;
  flex-direction: column;
}

.project-name {
  font-weight: 600;
  font-size: 14px;
}

.project-ticker {
  font-size: 12px;
  color: var(--text-dim);
}

.project-mcap,
.project-volume,
.project-ath {
  font-size: 14px;
  font-weight: 500;
}

.project-x {
  font-weight: 700;
  color: #4ade80;
  font-size: 14px;
}

.project-action {
  text-align: right;
}

/* ===== CTA Block ===== */
.cta-block {
  text-align: center;
  margin-top: 48px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: url('cta-bg.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.55);
  z-index: 0;
}

.cta-block > * {
  position: relative;
  z-index: 1;
}

.cta-text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

/* ===== Premium Section ===== */
.premium {
  padding: 100px 0;
}

.premium-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.premium-card {
  background: var(--bg-card);
  border: 1px solid rgba(57, 112, 217, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.5;
}

.premium-card:hover {
  border-color: rgba(57, 112, 217, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(57, 112, 217, 0.1);
}

.premium-nft-video {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.premium-nft-video video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.premium-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-mid) 0%, #160bd4 100%);
  border-radius: 50px;
  margin-bottom: 20px;
}

.premium-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.premium-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ===== Ventures Section ===== */
.ventures {
  padding: 100px 0;
}

.ventures-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}

.venture-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(57, 112, 217, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.venture-card:hover {
  border-color: rgba(57, 112, 217, 0.25);
  transform: translateX(4px);
  box-shadow: 0 4px 30px rgba(57, 112, 217, 0.08);
}

/* Strong blue-purple gradient on the left side, matching Figma */
.venture-glow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(42, 91, 184, 0.45) 0%, rgba(57, 112, 217, 0.3) 25%, rgba(57, 112, 217, 0.1) 50%, transparent 65%);
  pointer-events: none;
}


.venture-content {
  padding: 32px 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.venture-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  margin-right: 24px;
}

.venture-logo-invert {
  filter: invert(1);
}

.venture-text {
  flex: 1;
}

.venture-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.venture-slogan {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.venture-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  max-width: 600px;
}

/* ===== Footer ===== */
.footer {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.footer-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  line-height: 1.15;
}

.footer-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.copyright {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2),
  .stat-card:nth-child(4) {
    border-right: none;
  }

  .stat-card:nth-child(1),
  .stat-card:nth-child(2) {
    border-bottom: 1px solid rgba(57, 112, 217, 0.15);
  }

  .featured-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .projects-table-header,
  .project-row {
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 70px 120px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 60px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

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

  .stat-value {
    font-size: 36px;
  }

  .premium-cards {
    grid-template-columns: 1fr;
  }

  .projects-table-header,
  .project-row {
    grid-template-columns: 40px 1.5fr 1fr 1fr 60px;
    font-size: 12px;
    padding: 10px 12px;
  }

  .th-volume,
  .project-volume,
  .th-action,
  .project-action {
    display: none;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
  }

  .partners-bar {
    flex-direction: column;
    gap: 16px;
  }

  .partner-logos {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .venture-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .projects-table-header,
  .project-row {
    grid-template-columns: 32px 1.5fr 1fr 60px;
  }

  .th-ath,
  .project-ath {
    display: none;
  }

  .venture-content {
    padding: 24px;
  }

  .premium-card {
    padding: 28px;
  }

  .cta-block {
    padding: 32px 20px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
