/* --- CHETAVLY CORE VARIABLES --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --background: #030303; /* Deep space black */
  --mongo-green: #00ed64;
  --foreground: #f9fbfb;
  --muted: #0a0a0a;
  --muted-foreground: #737373;
  --border: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.02);
  --transition: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Eden Digital Noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
}

/* --- NAVIGATION --- */
.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 72px;
  border-bottom: 1px solid var(--border);
  backdrop-blur: 25px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(3, 3, 3, 0.7);
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.brand-icon {
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(0, 237, 100, 0.3));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #fff;
}
.nav-btn {
  background: var(--mongo-green);
  color: #000 !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11px;
}

/* --- HERO SECTION --- */
.hero-v2 {
  padding: 180px 20px 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-title {
        font-size: 2.8rem;
        line-height: 0.9;
        letter-spacing: -0.04em;
    }
.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--muted-foreground);
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* Waitlist Form */
.hero-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.input-group {
  display: flex;
  background: #080808;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 14px;
  width: 100%;
  transition: var(--transition);
}
.input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}
input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0 16px;
  font-size: 15px;
  min-width: 0;
}
#submit-btn {
  background: var(--mongo-green);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}
#submit-btn:hover {
  background: #fff;
}

.hero-video-wrapper {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050505;
  position: relative;
  margin-top: 60px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7);
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, #030303 100%);
}
.video-footer-meta {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
  font-size: 10px;
}

/* --- PILLARS / BENTO (EDEN LOGIC) --- */
.section-container {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 24px;
}
.section-header {
  margin-bottom: 56px;
}
.label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  opacity: 0.7;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-interactive {
  position: relative;
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.pillar-interactive:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.col-span-2 {
  grid-column: span 2;
}

.pillar-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0, 237, 100, 0.08) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.pillar-interactive:hover .card-glow {
  opacity: 1;
}

.pillar-interactive h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.pillar-interactive p {
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.mini-metrics {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.metric span {
  display: block;
  font-size: 9px;
  color: #444;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 6px;
}
.metric strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--mongo-green);
}

/* --- STACKED GRID --- */
.stacked-grid-section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.stack-stage {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}
.glass-card {
  position: absolute;
  width: 300px;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: 0.6s;
}
.card-1 {
  transform: translate(-180px, -20px) rotate(-8deg);
}
.card-2 {
  transform: translate(-60px, 10px) rotate(-2deg);
}
.card-3 {
  transform: translate(60px, -10px) rotate(3deg);
}
.card-4 {
  transform: translate(180px, 20px) rotate(9deg);
}
.glass-card:hover {
  z-index: 50;
  transform: translate(0, -60px) scale(1.05) rotate(0deg) !important;
  border-color: var(--mongo-green);
}
.glass-card:hover img {
  opacity: 1;
}

/* --- REFINED FOOTER --- */
.main-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 120px 40px 60px;
  margin-top: 140px;
  position: relative;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 80px;
}
.footer-bio {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.system-meta {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 32px;
}
.footer-column h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: 0.15em;
  font-weight: 800;
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 14px;
}
.footer-column ul li a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 14px;
  transition: 0.3s;
}
.footer-column ul li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #444;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mongo-green);
  font-weight: 700;
}
.status-dot {
  height: 6px;
  width: 6px;
  background: var(--mongo-green);
  border-radius: 50%;
  animation: blink 2.5s infinite;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .logo .brand-text {
    display: none;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 9px;
    letter-spacing: 0.05em;
  }
  .nav-btn {
    padding: 8px 12px;
    font-size: 9px;
    border-radius: 8px;
  }

  .hero-v2 {
    padding-top: 140px;
  }
  .hero-title {
        font-size: 2.8rem;
        line-height: 0.9;
        letter-spacing: -0.04em;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    gap: 12px;
    padding: 0;
  }
  input {
    background: #080808;
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 58px;
    text-align: center;
    width: 100%;
  }
  #submit-btn {
    width: 100%;
    height: 54px;
    border-radius: 12px;
    font-size: 12px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .pillar-interactive {
    padding: 40px;
    border-radius: 24px;
  }

  .stack-stage {
    height: auto;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }
  .glass-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 320px;
    transform: rotate(-1deg) !important;
    margin: 0 auto -180px;
  }
  .glass-card:last-child {
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .footer-bio,
  .system-meta {
    margin: 0 auto 32px;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

.text-mongo {
  color: var(--mongo-green);
}
.mono-id {
  font-family: "JetBrains Mono", monospace;
}
.hidden-msg {
  display: none;
  margin-top: 15px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--mongo-green);
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
