/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(270deg, #020617, #0f172a, #020617);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* 🔥 PERFORMANCE FIX: reduce heavy blur */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  filter: blur(80px); /* reduced from 120px */
  z-index: -1;
}

body::before {
  background: radial-gradient(circle, #38bdf8, transparent);
  top: -100px;
  left: -100px;
  animation: moveBg 12s infinite alternate;
}

body::after {
  background: radial-gradient(circle, #6366f1, transparent);
  bottom: -100px;
  right: -100px;
  animation: moveBg 14s infinite alternate;
}

@keyframes moveBg {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px, 30px); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  backdrop-filter: blur(10px); /* reduced */
  background: rgba(2,6,23,0.6);
  z-index: 1000;
}

.logo img {
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.4));
  transition: 0.3s;
}

.logo img:hover {
  transform: scale(1.05);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-outline {
  position: relative;
  z-index: 10; /* FIX click issue */
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  padding: 8px 18px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #38bdf8;
}

.btn-outline {
  border: 1px solid #38bdf8;
  padding: 8px 18px;
  border-radius: 999px;
  color: #38bdf8;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #38bdf8;
  color: black;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 90px 20px 60px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.3;
  animation: floatText 4s ease-in-out infinite;
}

.hero span {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  opacity: 0.7;
  font-size: 14px;
}

/* 🔥 reduce animation intensity */
@keyframes floatText {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== INPUT ===== */
.input-box {
  margin-top: 20px;
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 6px;
  width: 100%;
  max-width: 450px;
  backdrop-filter: blur(10px); /* reduced */
  transition: 0.3s;
  z-index: 10;
}

.input-box:hover {
  box-shadow: 0 0 15px rgba(56,189,248,0.2);
}

.input-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  padding: 12px;
  outline: none;
  font-size: 14px;
}

.input-box button {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
}

/* ===== EXAMPLES ===== */
.examples {
  margin-top: 10px;
}

.examples span {
  margin: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
}

.examples span:hover {
  background: #38bdf8;
  color: black;
}

/* ===== HOW ===== */
.how {
  padding: 60px 20px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(99,102,241,0.2);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  margin-bottom: 20px;
}

/* ===== PARTICLES FIX ===== */
.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none; /* 🔥 FIX CLICK ISSUE */
}

.particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #38bdf8;
  border-radius: 50%;
  opacity: 0.2;
  animation: floatParticles linear infinite;
}

@keyframes floatParticles {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(-10vh);
  }
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56,189,248,0.2), transparent);
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* ===== DESKTOP ===== */
@media(min-width:768px){
  .hero h1 {
    font-size: 52px;
  }

  .hero p {
    font-size: 16px;
  }

  .grid {
    grid-template-columns: repeat(3,1fr);
  }
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

  .hero {
    padding: 100px 15px 50px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 13px;
  }

  .input-box {
    flex-direction: column;
    padding: 10px;
  }

  .input-box button {
    width: 100%;
    margin-top: 8px;
  }

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

/* ===== BACKGROUND ANIMATION ===== */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== FIX BAD MOBILE EXAMPLES UI ===== */
@media (max-width: 768px) {

  .examples {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
  }

  .examples span {
    display: inline-block !important;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    white-space: nowrap;
    max-width: 100%;
  }

  .examples span:empty {
    display: none !important; /* 🔥 removes broken empty boxes */
  }

}