/* GridBrain.ai - Bootstrap 5 template override
   Author: ChatGPT
   Notes:
   - Uses Bootstrap 5 via CDN
   - Dark sci-fi aesthetic, Ferrari-red accent
*/

:root {
  --gb-bg: #07080c;
  --gb-bg-2: #0b0d14;
  --gb-card: #0f1320;
  --gb-text: #e7e9ee;
  --gb-muted: #aab0c0;
  --gb-border: rgba(255, 255, 255, 0.08);
  --gb-red: #e00700;
  --gb-gold: #d6b25e;
  --gb-cyan: #6ee7ff;
  --gb-radius: 20px;
  --gb-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif,
    system-ui,
    apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";

  background: radial-gradient(1200px 700px at 15% 10%,
      rgba(224, 7, 0, 0.18),
      transparent 60%),
    radial-gradient(1100px 650px at 85% 15%,
      rgba(110, 231, 255, 0.1),
      transparent 55%),
    linear-gradient(180deg, var(--gb-bg), var(--gb-bg-2));
  color: var(--gb-text);
  overflow-x: hidden;
}

body.nav-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.img-placeholder {
  background: rgba(255, 255, 255, 0.02);
  /* border: 1px dashed rgba(255, 255, 255, 0.1); */
  border-radius: var(--gb-radius);
  display: grid;
  place-items: center;
  color: var(--gb-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* .img-placeholder:hover {
  border-color: var(--gb-cyan);
  background: rgba(110, 231, 255, 0.03);
} */

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

a:hover {
  color: var(--gb-cyan);
}


body.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Buttons */
.btn-gb {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--gb-red);
  --bs-btn-border-color: rgba(224, 7, 0, 0.6);
  --bs-btn-hover-bg: #ff120a;
  --bs-btn-hover-border-color: rgba(255, 18, 10, 0.7);
  --bs-btn-active-bg: #c70600;
  --bs-btn-active-border-color: #c70600;
  box-shadow: 0 20px 40px rgba(224, 7, 0, 0.18);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn-gb-outline {
  border-radius: 999px;
  border: 1px solid rgba(231, 233, 238, 0.2);
  color: #fff;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.btn-gb-outline:hover {
  border-color: rgba(110, 231, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(110, 231, 255, 0.08);
}

/* Hero */
.hero {
  padding-top: 6.5rem;
  /* padding-bottom: 1rem; */
  position: relative;
}

.hero .badge {
  background: var(--gb-red);
  /* border: 1px solid rgba(224, 7, 0, 0.35); */
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.hero h1 {
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.05;
}

.hero .lead {
  color: rgba(231, 233, 238, 0.82);
  font-size: 1.12rem;
}

.hero-card {
  background: linear-gradient(180deg,
      rgba(15, 19, 32, 0.78),
      rgba(15, 19, 32, 0.56));
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius);
  box-shadow: var(--gb-shadow);
  padding: 1.25rem;
}

.kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem;
}

.kpi .v {
  font-weight: 900;
  font-size: 1.3rem;

}

.kpi .l {
  color: var(--gb-muted);
  font-size: 0.92rem;
}

/* Section */
section {
  padding: 2rem 0;
}

.section-title {
  font-weight: 900;
  letter-spacing: -0.3px;
}

.section-sub {
  color: rgba(231, 233, 238, 0.75);
  max-width: 52rem;
}

.card-gb {
  background: linear-gradient(180deg,
      rgba(15, 19, 32, 0.82),
      rgba(15, 19, 32, 0.56));
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius);
  box-shadow: var(--gb-shadow);
  height: 100%;
}

.card-body {
  color: var(--gb-text);
}

.card-gb .card-body {
  padding: 1.3rem;
}

.muted {
  color: rgba(231, 233, 238, 0.72);
}

/* Icon chips */
.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

/* Feature grid */
.feature-title {
  font-weight: 800;
  margin: 0.2rem 0 0.35rem;
  color: var(--gb-text);
}

.small-note {
  color: rgba(231, 233, 238, 0.66);
  font-size: 0.95rem;
}

/* Architecture */
.arch {
  border-radius: var(--gb-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(900px 400px at 20% 0%,
      rgba(110, 231, 255, 0.1),
      transparent 60%),
    radial-gradient(900px 400px at 80% 100%,
      rgba(224, 7, 0, 0.11),
      transparent 62%),
    rgba(255, 255, 255, 0.02);
  padding: 1.25rem;
}

.layer {
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 19, 32, 0.55);
}

.layer .n {
  font-weight: 900;
  color: #fff;
}

.layer .d {
  color: rgba(231, 233, 238, 0.72);
  margin: 0;
}

/* CTA */
.cta {
  padding: 3.5rem 0;
  background:
    radial-gradient(900px 450px at 15% 20%,
      rgba(224, 7, 0, 0.18),
      transparent 60%),
    radial-gradient(700px 380px at 85% 60%,
      rgba(214, 178, 94, 0.14),
      transparent 55%),
    rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 8, 12, 0.4);
  border-radius: var(--gb-radius);
  padding: 1.4rem;
  box-shadow: var(--gb-shadow);
}

/* Footer */
footer {
  border-top: 2px solid var(--gb-border);
  padding: 2.5rem 0 1.5rem;
  color: rgba(231, 233, 238, 0.72);
  /* background-color: #393939; */
}

.footer-link {
  color: rgba(231, 233, 238, 0.72);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  /* Adjust icon size */
}



.footer-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Forms */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 14px;
}

.form-select option {
  color: black;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(110, 231, 255, 0.15);
}

/* Utilities */
.hr-soft {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.glow {
  position: absolute;
  inset: auto;
  filter: blur(45px);
  opacity: 0.7;
  pointer-events: none;
  /* display: none; */
}

.glow.red {
  background: rgba(224, 7, 0, 0.25);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  top: -120px;
  left: -120px;
}

.glow.cyan {
  background: rgba(110, 231, 255, 0.18);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  bottom: -120px;
  right: -140px;
  display: none;
}

@media (max-width: 991px) {
  .nav-link:hover {
    color: black !important;
    background: rgba(0, 0, 0, 0.115);
    border-bottom: none;
    /* transition: all 0.5s ease; */
    /* font-weight: 700; */
  }

  .nav-link.active {
    color: black !important;
    background: rgba(0, 0, 0, 0.115);
    border-bottom: none;
    /* transition: all 0.5s ease; */
    /* font-weight: 700; */
  }


}

/* Enhanced Footer Links */
.footer-link {
  transition: all 0.2s ease;
  opacity: 0.7;
  text-decoration: none;
}

.footer-link:hover {
  opacity: 1;
  /* color: var(--gb-cyan) !important; */
  /* padding-left: 4px; */
  /* Subtle slide effect on hover */
}

/* Uppercase tracking for headers */
.tracking-widest {
  letter-spacing: 0.15em;
}

/* Ensure the logo in the footer matches your navbar logo */
.gb-logo {
  /* flex-shrink: 0; */
}

/* ==============================
   Reduce Bootstrap spacing on mobile
============================== */

@media (max-width: 768px) {

  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .mt-5 {
    margin-top: 1.5rem !important;
  }

  .mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .mt-4 {
    margin-top: 1rem !important;
  }

  .mb-4 {
    margin-bottom: 1rem !important;
  }

}