@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #070b1a;
  color: #f8fafc;
  line-height: 1.6;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
  height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(7, 11, 26, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(18px);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: #8b5cf6;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: #a5b4fc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #22d3ee;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 700px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 100px 20px;

  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(124, 58, 237, 0.25),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(6, 182, 212, 0.18),
      transparent 30%
    ),
    #070b1a;
}


/* Glow */

.hero::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  background: #7c3aed;

  filter: blur(180px);

  opacity: 0.12;

  top: -150px;
  left: -100px;
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 2;
}


/* Badge */

.badge {
  display: inline-block;

  padding: 8px 18px;

  border-radius: 30px;

  color: #c4b5fd;

  background: rgba(139, 92, 246, 0.12);

  border: 1px solid rgba(139, 92, 246, 0.3);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 1px;

  margin-bottom: 30px;
}


/* Main title */

.hero h1 {
  font-size: clamp(50px, 8vw, 92px);

  line-height: 0.95;

  letter-spacing: -5px;

  margin-bottom: 30px;

  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(
    90deg,
    #8b5cf6,
    #22d3ee
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: #94a3b8;

  font-size: 18px;

  max-width: 620px;

  margin: auto auto 40px;
}


/* =========================
   NAME INPUT
========================= */

.name-box {
  max-width: 600px;

  margin: auto;

  display: flex;

  padding: 7px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 18px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(20px);
}

.name-box input {
  flex: 1;

  background: transparent;

  border: none;
  outline: none;

  color: white;

  padding: 17px;

  font-size: 16px;
}

.name-box input::placeholder {
  color: #64748b;
}

.name-box button {
  border: none;

  padding: 0 28px;

  border-radius: 13px;

  color: white;

  font-weight: 700;

  cursor: pointer;

  background: linear-gradient(
    135deg,
    #7c3aed,
    #06b6d4
  );

  transition: 0.3s;

  box-shadow:
    0 8px 25px rgba(124, 58, 237, 0.3);
}

.name-box button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 35px rgba(34, 211, 238, 0.3);
}


/* Greeting */

.greeting {
  min-height: 35px;

  margin-top: 25px;

  color: #67e8f9;

  font-size: 19px;

  font-weight: 700;
}


/* =========================
   SEARCH
========================= */

.search-section {
  padding: 120px 7%;

  background:
    linear-gradient(
      180deg,
      #070b1a 0%,
      #0b1024 100%
    );
}

.section-heading {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 50px;
}

.section-label {
  color: #22d3ee;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 3px;
}

.section-heading h2,
.about h2 {
  font-size: clamp(32px, 5vw, 50px);

  line-height: 1.1;

  letter-spacing: -2px;

  margin: 12px 0 18px;

  color: #f8fafc;
}

.section-heading p {
  color: #64748b;

  font-size: 16px;
}


/* =========================
   SEARCH BAR
========================= */

.search-container {
  max-width: 800px;

  margin: 0 auto 60px;
}

.search-input-wrapper {
  display: flex;

  align-items: center;

  padding: 5px 18px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 17px;

  transition: 0.3s;
}

.search-input-wrapper:focus-within {
  border-color: #8b5cf6;

  box-shadow:
    0 0 30px rgba(139, 92, 246, 0.15);
}

.search-icon {
  font-size: 20px;
}

.search-input-wrapper input {
  flex: 1;

  background: transparent;

  border: none;

  outline: none;

  color: white;

  padding: 18px;

  font-size: 16px;
}

.search-input-wrapper input::placeholder {
  color: #64748b;
}

.clear-button {
  border: none;

  background: transparent;

  color: #64748b;

  font-size: 26px;

  cursor: pointer;
}


/* =========================
   CARDS
========================= */

.results-grid {
  max-width: 1150px;

  margin: auto;

  display: grid;

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

  gap: 22px;
}

.result-card {
  padding: 32px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.07),
      rgba(255,255,255,0.025)
    );

  border: 1px solid rgba(255,255,255,0.09);

  border-radius: 22px;

  transition: 0.35s;

  position: relative;

  overflow: hidden;
}

.result-card::before {
  content: "";

  position: absolute;

  width: 100px;
  height: 100px;

  background: #7c3aed;

  filter: blur(70px);

  opacity: 0;

  transition: 0.35s;
}

.result-card:hover {
  transform: translateY(-8px);

  border-color: rgba(139,92,246,0.4);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.3);
}

.result-card:hover::before {
  opacity: 0.25;
}

.card-icon {
  font-size: 38px;

  margin-bottom: 22px;
}

.result-card h3 {
  font-size: 20px;

  margin-bottom: 10px;
}

.result-card p {
  color: #64748b;

  font-size: 14px;

  margin-bottom: 20px;
}

.card-tag {
  display: inline-block;

  padding: 5px 12px;

  border-radius: 20px;

  background: rgba(34,211,238,0.08);

  color: #67e8f9;

  font-size: 11px;

  font-weight: 700;
}

.no-results {
  display: none;

  text-align: center;

  color: #64748b;

  margin-top: 30px;
}


/* =========================
   ABOUT
========================= */

.about {
  padding: 120px 7%;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;

  background: #080d1f;
}

.about p {
  color: #64748b;

  font-size: 16px;

  max-width: 600px;
}

.architecture-card {
  padding: 45px;

  border-radius: 24px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(139,92,246,0.12),
      rgba(34,211,238,0.05)
    );

  border: 1px solid rgba(139,92,246,0.2);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.3);

  font-weight: 700;

  color: #c4b5fd;
}

.architecture-card div {
  padding: 8px;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 35px;

  text-align: center;

  background: #050816;

  border-top: 1px solid rgba(255,255,255,0.06);

  color: #475569;

  font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

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

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

  .name-box {
    flex-direction: column;

    gap: 8px;
  }

  .name-box button {
    padding: 16px;
  }

  .hero h1 {
    letter-spacing: -3px;
  }
}


@media (max-width: 500px) {

  .navbar {
    padding: 0 5%;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding: 70px 20px;
  }

  .search-section,
  .about {
    padding: 80px 20px;
  }

}