:root {
  --bg-color: #030712; /* Very dark blue/black */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.5);
  --glass-bg: rgba(17, 25, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.125);
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Background Blobs --- */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: var(--secondary);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #ec4899; /* Pink accent */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
  opacity: 0.2;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* --- Glassmorphism --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

/* --- Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.logo-img {
  border-radius: 8px; /* Rounded corners */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a:hover {
  color: white;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: white !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(
    to right,
    var(--primary),
    var(--secondary),
    #ec4899
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.video-container {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.video-container:hover {
  transform: scale(1.02);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem; /* Optional: match container radius if preferred, but container overflows hidden so ok */
}

.code-window {
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s;
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.window-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

.red {
  background: #ef4444;
}
.yellow {
  background: #eab308;
}
.green {
  background: #22c55e;
}

.title {
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.codesnippet pre {
  font-family: "Fira Code", monospace;
  color: #cbd5e1;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* --- Features Section --- */
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(17, 25, 40, 0.9);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.feature-card p {
  color: var(--text-secondary);
}

/* --- How It Works --- */
.how-it-works {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.step:nth-child(odd) {
  flex-direction: row; /* visual */
}

/* Alternate on desktop */
.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 1;
}

.step-number {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  display: block;
  margin-bottom: -1rem;
  position: relative;
  z-index: -1;
}

.step h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.step-visual {
  flex: 1;
  padding: 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  padding: 1rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0;
  font-family: monospace;
}

.file-tree {
  font-family: monospace;
  color: #e2e8f0;
}

.sync-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.text-green {
  color: #22c55e;
}
.text-blue {
  color: #3b82f6;
}

.connector {
  color: var(--text-secondary);
  opacity: 0.3;
}
.centered {
  text-align: center;
  display: flex;
  justify-content: center;
}

/* --- Tech Stack --- */
.tech-stack {
  text-align: center;
  padding: 4rem 2rem;
}
.logos-scroll {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: white;
}

.footer-col p {
  color: var(--text-secondary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  color: var(--text-secondary);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

/* --- Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Mobile menu implementation needed if strictly required, simplified for now */
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .cta-group {
    justify-content: center;
  }

  .step {
    flex-direction: column !important;
    text-align: center;
    gap: 1rem;
  }

  .step-visual {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
