/* styles.css - Shared styles for CuesBeat website */

:root {
  --primary: #00c853;
  --dark: #0d1b2a;
  --light: #f8f9fa;
  --accent: #4fc3f7;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}



nav a:hover,
nav a.active {
  color: var(--primary);
}

/* Hero (only on index) */
.hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
  color: white;
  text-align: center;
  padding: 6rem 1rem 8rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.store-btn {
  display: block;
  width: 180px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
}

.app-store {
  background-image: url('https://developer.apple.com/assets/elements/badges/download-on-the-app-store.svg');
}

.google-play {
  background-image: url('https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png');
}

/* General sections */
section {
  padding: 6rem 0;
}

h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature h3 {
  margin: 1rem 0 0.8rem;
  font-size: 1.5rem;
  color: var(--dark);
}

.screenshots {
  background: var(--light);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.gallery img {
  max-width: 320px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

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

.cta-final {
  text-align: center;
  background: linear-gradient(135deg, #00c853, #00b140);
  color: white;
  padding: 6rem 1rem;
}

.cta-final h2 {
  color: white;
}

/* Legal pages content */
section.content {
  padding: 4rem 0;
  background: var(--light);
}

section.content h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.last-updated {
  text-align: center;
  font-style: italic;
  margin-bottom: 2.5rem;
  color: #666;
}

/* section.content h2 {
  color: var(--dark);
  margin: 2.5rem 0 1rem;
} */

/* Reduce top margin for h2 inside legal content sections */
section.content h2 {
  margin-top: 1rem;      /* ← reduced from default/implicit large gap */
  margin-bottom: 1.2rem; /* smaller bottom spacing for better flow */
}

/* Optional: make it even tighter if needed */
section.content h2:first-child {
  margin-top: 0.5rem;    /* almost no gap after the page title / last-updated */
}

section.content p,
section.content ul {
  margin-bottom: 1.2rem;
}

section.content ul {
  padding-left: 1.8rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: #ccc;
  text-align: center;
  padding: 3rem 1rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem 6rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .store-badges {
    flex-direction: column;
    align-items: center;
  }
  nav ul {
    gap: 1.5rem;
    justify-content: center;
  }
}