/* Base styles */
body {
  background: radial-gradient(ellipse at top, #000814, #0B0F2E);
  color: #b3eaff;
  margin: 0;
  background-attachment: fixed;
  background-size: cover;
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: #00ccff;
  text-decoration: none;
}

a:hover {
  color: #66e0ff;
}

/* Layout helpers */
.spacer-100 {
  height: 100px;
}

/* Crypto ticker bar */
.ticker-bar {
  background-color: #0a1f3c;
  padding: 8px 16px;
  color: #fff;
  font-size: 0.85em;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: center;
  gap: 24px;
  z-index: 10;
  width: 100%;
}

/* Navbar logo */
.logo-img {
  height: 25px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Hero section */
.ai-hero {
  background: linear-gradient(to bottom, #000814, #0B0F2E);
  padding: 40px;
  color: #fff;
  max-width: 100%;
  margin: 0 auto;
}
.ai-hero-subtitle {
  font-size: 2em;
  color: #00ccff;
  text-shadow: 0 0 10px #00ccff;
}
.ai-genius-wrapper {
  position: relative;
  z-index: 0;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}
.ai-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 360px;
}

/* Promo section */
.promo-flex {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}
.promo-img-container {
  flex: 1 1 400px;
  max-width: 600px;
}
.promo-system-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 30px #00ccff;
}
.btn-promo {
  background: linear-gradient(to right, #00ccff, #0033cc);
  color: #000;
  padding: 14px 32px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 15px #00ccff;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

/* Auth buttons */
.auth-button {
  background-color: white;
  color: black;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  margin-left: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.auth-button:hover {
  background-color: #ddd;
  color: black;
}

/* Mobile navbar: stack into 3 rows like investing.html */
@media (max-width: 600px) {
  /* base padding & font-size tweaks */
  .w3-bar.w3-white {
    display: flex;
    flex-wrap: wrap;
    padding: 4px 8px !important;
  }
  .w3-bar.w3-white .w3-button {
    padding: 6px 8px !important;
    font-size: 0.85em !important;
  }

  /* Row 1: logo full-width, centered */
  .w3-bar-item.w3-button:first-child {
    flex: 1 1 100%;
    text-align: center;
    padding: 0.25rem 0 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.02em !important;
  }
  .w3-bar-item.w3-button:first-child img {
    width: 20px;
    height: 20px;
    margin-right: 0.25rem;
  }

  /* Row 2: all main links equally spaced */
  .w3-bar-item.w3-button:not(:first-child):not(.w3-right) {
    flex: 1 1 20%;
    text-align: center;
    font-size: 0.8rem !important;
    padding: 0.25rem 0 !important;
    letter-spacing: normal !important;
  }

  /* Row 3: auth buttons (Sign In/Register or Logout) */
  .w3-right {
    flex: 1 1 100%;
    display: flex;
    justify-content: space-around;
    padding: 0.25rem 0 !important;
  }
  .w3-right .auth-button,
  .w3-right .drk-button {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.8rem !important;
    padding: 0.25rem 0 !important;
    letter-spacing: 0.02em !important;
  }

  /* normalize letter-spacing on all other buttons */
  .w3-top .w3-bar-item.w3-button:not(.auth-button):not(.drk-button),
  .w3-top .welcome-text {
    letter-spacing: normal !important;
  }
    }
