/* Base styles */
:root {
  color-scheme: dark;
  --bg: #08070f;
  --bg-2: #0f0e18;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.68);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 65px rgba(0, 0, 0, 0.5);
  --radius: 26px;
  --radius-sm: 18px;
  --focus: rgba(177, 200, 255, 0.22);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at 20% 15%, rgba(95, 175, 255, 0.15), transparent 50%),
    radial-gradient(circle at 75% 20%, rgba(255, 135, 195, 0.12), transparent 50%),
    radial-gradient(circle at 40% 85%, rgba(128, 255, 170, 0.08), transparent 50%),
    var(--bg);
  overflow-x: hidden;
  color: var(--text);
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.fade-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.fallback {
  width: 100%;
  padding: 18px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.fallback-small {
  margin: 8px 0 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Background particles canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: 0.75;
}

/* Glowing radial highlight behind hero */
.glow {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 560px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 40% 40%, rgba(130, 220, 255, 0.28), transparent 55%);
  filter: blur(90px);
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  padding: 80px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  margin: 0 auto;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 820px;
  width: 100%;
}

/* Logo container with glow */
.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(220, 240, 255, 0.35) 0%, rgba(200, 230, 255, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(45px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-logo {
  width: 280px;
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(130, 220, 255, 0.2));
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -0.05em;
  margin: 0;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  opacity: 0.95;
  margin: 0;
  font-weight: 600;
}

.hero-description {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.85;
  max-width: 680px;
  opacity: 0.78;
  margin: 0;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.button {
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600;
  letter-spacing: 0.025em;
  cursor: pointer;
  border: 1.2px solid transparent;
  min-width: 160px;
  font-size: 1.05rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
}

.button.primary {
  background: rgba(33, 160, 243, 0.95);
  box-shadow: 0 20px 40px rgba(33, 160, 243, 0.4);
  color: #ffffff;
}

.button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 55px rgba(33, 160, 243, 0.5);
  background: rgba(33, 160, 243, 1);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}

.button.secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.1);
}

/* Ventures */
.ventures {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ventures-title {
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(175, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.18);
}

.card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.card-title {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.card-text {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.7;
  margin: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .container {
    padding: 60px 0 60px;
    gap: 60px;
  }

  .hero {
    gap: 24px;
  }

  .logo-container {
    margin-bottom: 8px;
  }

  .hero-logo {
    width: 220px;
    max-width: 260px;
  }

  .cards {
    gap: 18px;
  }
}
