:root {
  --bg: #12273f;
  --light-text: #e0e0e0;
  --accent: #0f766e;
  --card-bg: #1b2a41;
  --tag-bg: #23395d;
  --hover-accent: #14b8a6;
}

body {
  padding-top: 80px;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--light-text);
}

header {
  padding: 2rem;
  text-align: center;
  background: #12273f;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  color: white;
}

header p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
}

.main-nav {
  background: #12273f;
  display: flex;
  padding: 1.4rem;
  gap: 2rem;
  text-align: center;
  border: 0px solid white;
  justify-content: center;
  flex-direction: row
}

.main-nav a {
  color: #e0e0e0;
  background: #1b2a41;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  gap: 2rem;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid white;
  transition: background 0.3s, color 0.3s;
}

.main-nav a:hover {
  background: var(--hover-accent);
  color: white;
}

.promo {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  padding: 2rem;
  text-align: center;
  color: white;
}

.promo h2 {
  margin: 0 0 0.5rem 0;
}

.promo p {
  margin: 0;
  font-size: 1rem;
}

.promo-about {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  padding: 10rem;
  text-align: center;
  color: white;
}

.promo-about h2 {
  margin: 0 0 0.5rem 0;
}

.promo-about p {
  margin: 0;
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.tags span {
  background: var(--tag-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #e2e8f0;
  border: 1px solid #334155;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.tags span:hover {
  background: var(--hover-accent);
  color: white;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.4);
}

.card img {
  width: 100%;
  border-radius: 8px;
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.card p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

a.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.4);
}

a.card h3 {
  color: white;
  text-decoration: none;
}

footer {
  background-color: #12273f;
  color: #cbd5e1;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.top-auth-button {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: #14b8a6;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

.top-auth-button:hover {
  background: white;
  color: #14b8a6;
  transform: translateY(0px);
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.4rem;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #10b981; /* hover turns green */
}

.title-bar-studies {
  height: 4px;
  width: 100%;
  background-color: #00bcd4; /* cyan / teal-blue */
  margin: 8px 0 20px 0;
  border-radius: 4px;
}

.title-bar-quick-insights {
  height: 4px;
  width: 100%;
  background-color: #00d435; /* cyan / teal-blue */
  margin: 8px 0 20px 0;
  border-radius: 4px;
}

.title-bar-dashboards {
  height: 4px;
  width: 100%;
  background-color: #d42000; /* cyan / teal-blue */
  margin: 8px 0 20px 0;
  border-radius: 4px;
}

.top-menu {
  width: 100%;
  background: linear-gradient(90deg, #0D1B2A, #1B263B);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: fixed;        /* ✅ makes it stick */
  top: 0;                 /* ✅ aligns to top */
  left: 0;
  right: 0;
  z-index: 1000;          /* ✅ keeps it above other content */
}

.menu-left a {
  color: white;
  text-decoration: none;
  margin-right: 20px;
  margin-left: 30px;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
  transition: color 0.3s;
}

.menu-left a:hover {
  color: #00b894;
}

.menu-right .login-button {
  background-color: #00b894;
  padding: 8px 16px;
  margin-right: 70px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.menu-right .login-button:hover {
  background-color: #019875;
}

.menu-icon {
  width: 29px;
  height: 29px;
  margin-right: 12px;
  vertical-align: middle;
}

.center-header {
  text-align: center;
  margin-top: 0px;
  color: white;
}

.logo-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* space between icon and text */
}

.logo-title img.header-logo {
  width: 46px;
  height: 46px;
}

.hero {
  background: url('/static/images/image_landing.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  font-family: 'Segoe UI', sans-serif;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.55); /* semi-transparent overlay */
  padding: 2rem;
  border-radius: 10px;
  transform: translateY(-50px); /* move up */
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.cta-button {
  background-color: #00b894;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #019875;
}

.usecases {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
  color: #212529;
}

.usecases h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.usecase-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1500px;
  margin: 0 auto;
}

.usecase-item {
  background-color: white;
  padding: 25px;
  color: #212529;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.usecase-item i {
  font-size: 2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #007bff;
  margin-bottom: 10px;
}

.usecase-item h3 {
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  color: #212529;  /* Dark gray instead of faded gray */
}

.usecase-item p {
  color: #495057;  /* Bootstrap-ish readable gray */
  font-size: 0.95rem;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.4;
}

.usecase-item {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.usecase-item img,
.usecase-item video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.usecase-item h3 {
  font-size: 1.1rem;
  color: #212529;
  margin-bottom: 0.5rem;
}

.usecase-item p {
  color: #555;
  font-size: 0.95rem;
}

.feature-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 10%;
  background-color: #f9f9f9;
  flex-wrap: wrap;
}

.feature-text {
  flex: 1;
  min-width: 300px;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #111;
}

.feature-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.feature-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.feature-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.why-macrosights-banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  padding: 0;
  object-fit: contain;
  aspect-ratio: 5 / 1; /* optional: flattens tall images visually */
}

.usecases h5 {
  margin-top: 1px;
  margin-bottom: 1px;
  font-size: 3rem;
}