/* ============================================================
   6 Love — Shared Styles
   Dark green theme matching the mobile app
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark:        #0A0C0F;
  --bg-mid:         #12161E;
  --bg-lower:       #0E1115;
  --bg-card:        #1A1E24;
  --bg-sheet:       #0F1218;
  --accent-green:   #2E7D32;
  --accent-light:   #4CAF50;
  --accent-dark:    #1B5E20;
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255,255,255,0.72);
  --text-muted:     rgba(255,255,255,0.45);
  --border:         rgba(255,255,255,0.10);
  --border-green:   rgba(46,125,50,0.50);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --shadow-card:    0 4px 24px rgba(0,0,0,0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,15,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,0) 0%, var(--bg-dark) 90%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 320px;
  max-width: 75vw;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 32px rgba(46,125,50,0.5));
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #a5d6a7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.badge-link:hover {
  border-color: var(--accent-green);
  background: rgba(46,125,50,0.12);
  color: var(--text-primary);
  text-decoration: none;
}

.badge-link svg {
  flex-shrink: 0;
}

.badge-coming-soon {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Section --- */
.section {
  padding: 72px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header {
  margin-bottom: 48px;
}

/* --- Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-green);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Utility Page (confirmed, reset, etc.) --- */
.page-utility {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 50%, #0E1410 100%);
  text-align: center;
}

.utility-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.utility-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.utility-icon.green {
  background: rgba(46,125,50,0.2);
  border: 1px solid var(--border-green);
}

.utility-icon.amber {
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.35);
}

.utility-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 24px;
}

.utility-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.utility-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.utility-footer-links {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.utility-footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

.utility-footer-links a:hover {
  color: var(--text-secondary);
}

/* --- Prose (privacy / terms pages) --- */
.prose-page {
  padding: 64px 0 80px;
}

.prose-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prose-header .section-label {
  display: block;
  margin-bottom: 10px;
}

.prose-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.prose-header .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.prose-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 12px;
}

.prose-body h2:first-child {
  margin-top: 0;
}

.prose-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}

.prose-body ul {
  margin: 0 0 14px 20px;
}

.prose-body ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.prose-body a {
  color: var(--accent-light);
}

.prose-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-sheet);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  opacity: 0.8;
}

.footer-brand span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .navbar-links {
    display: none;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-logo {
    width: 160px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .utility-card {
    padding: 28px 20px;
  }
}

@media (max-width: 380px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
