* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --midnight-blue: #0a0e1a;
  --deep-blue: #0f1729;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.1);
  --orange-gradient: linear-gradient(
    135deg,
    #f97316 0%,
    #fb923c 50%,
    #fdba74 100%
  );
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Circular", sans-serif;
  background: var(--midnight-blue);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated Background */
.bg-gradient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(249, 115, 22, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 60%,
      rgba(249, 115, 22, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse 50% 30% at 20% 80%,
      rgba(249, 115, 22, 0.03) 0%,
      transparent 50%
    ),
    var(--midnight-blue);
}

/* Grid Pattern */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 60% 40% at 50% 50%,
    black 20%,
    transparent 70%
  );
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--orange-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn-primary {
  background: var(--orange-gradient);
  border: none;
}

.nav-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: #f97316;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #f97316;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--orange-gradient);
  border: none;
  color: #0a0e1a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 3D Bid Document */
.bid-container {
  perspective: 1000px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.bid-document-3d {
  width: 380px;
  height: 520px;
  position: relative;
  transform-style: preserve-3d;
  animation: floatBid 6s ease-in-out infinite;
}

@keyframes floatBid {
  0%,
  100% {
    transform: rotateX(5deg) rotateY(-5deg) translateY(0);
  }
  50% {
    transform: rotateX(5deg) rotateY(-5deg) translateY(-20px);
  }
}

.bid-body {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 100px rgba(249, 115, 22, 0.1);
  overflow: hidden;
}

/* Bid Refraction Layers */
.bid-refraction {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(249, 115, 22, 0.05) 45%,
    rgba(253, 186, 116, 0.08) 50%,
    rgba(249, 115, 22, 0.05) 55%,
    transparent 70%
  );
  pointer-events: none;
}

.bid-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: skewX(-20deg);
  animation: bidShine 5s ease-in-out infinite;
}

@keyframes bidShine {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 150%;
  }
}

/* Bid Header */
.bid-header {
  padding: 25px 25px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bid-company {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.bid-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bid-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Bid Content */
.bid-content {
  padding: 20px 25px;
}

.bid-section {
  margin-bottom: 18px;
}

.bid-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bid-text-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 6px;
  width: 100%;
}

.bid-text-line.short {
  width: 60%;
}

.bid-text-line.medium {
  width: 80%;
}

.bid-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0;
  padding: 15px 20px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 10px;
}

.bid-price-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.bid-price-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f97316;
}

.bid-price-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Bid Features */
.bid-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.bid-feature {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Bid Footer */
.bid-footer {
  padding: 15px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bid-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bid-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.bid-secure svg {
  width: 14px;
  height: 14px;
  stroke: #f97316;
}

/* Bid Glow */
.bid-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.12) 0%,
    transparent 70%
  );
  filter: blur(40px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Bento Grid Section */
.dashboard-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Glass Cards */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card-lg {
  grid-column: span 8;
  min-height: 380px;
}

.glass-card-md {
  grid-column: span 4;
  min-height: 380px;
}

.glass-card-sm {
  grid-column: span 4;
  min-height: 180px;
}

.glass-card-xs {
  grid-column: span 3;
  min-height: 180px;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
}

/* Stat Cards */
.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.stat-change.positive {
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
}

.stat-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 280px;
  width: 100%;
}

/* Live Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #f97316;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #f97316;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Progress Ring */
.progress-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.progress-text {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.progress-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
  width: 36px;
  height: 36px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 18px;
  height: 18px;
  stroke: #f97316;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.activity-amount {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Mini Chart */
.mini-chart {
  height: 60px;
  width: 100%;
}

/* Grid Columns */
.col-span-3 {
  grid-column: span 3;
}
.col-span-4 {
  grid-column: span 4;
}
.col-span-5 {
  grid-column: span 5;
}
.col-span-6 {
  grid-column: span 6;
}
.col-span-7 {
  grid-column: span 7;
}
.col-span-8 {
  grid-column: span 8;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .bid-document-3d {
    width: 340px;
    height: 465px;
    margin: 0 auto;
  }

  .glass-card-lg,
  .glass-card-md {
    grid-column: span 12;
  }

  .glass-card-sm {
    grid-column: span 6;
  }

  .glass-card-xs {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .glass-card-sm,
  .glass-card-xs {
    grid-column: span 12;
  }

  .bento-grid {
    gap: 1rem;
  }
}

/* Glowing Line Chart Custom Styles */
.glow-chart {
  position: relative;
}

.glow-chart canvas {
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
}

/* Video Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  border: 2px solid #fff;
  position: relative;
  width: 90%;
  max-width: 900px;
  background: var(--midnight-blue);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--card-border);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 16px;
}

.video-player {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

/* Footer */
.footer {
  background: rgba(10, 14, 26, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 0;
}

.footer-logo .logo {
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-about-img {
  display: flex;
  gap: 0.75rem;
}

.footer-img {
  width: 120px;
  height: 120px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  transition: stroke 0.3s ease;
}

.footer-link:hover svg {
  stroke: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  /* flex-direction: column; */
	justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.icp-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.icp-link:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-section:nth-child(3) {
    grid-column: span 2;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section:nth-child(3) {
    grid-column: span 1;
    max-width: none;
  }

  .footer-description {
    max-width: none;
    margin: 0 auto;
  }

  .footer-links {
    align-items: center;
  }
}
