/* ============================================================
   MapMyShots - Main Stylesheet
   ============================================================ */

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

:root {
  --blue-dark:   #1E3A5F;
  --blue-cta:    #2563EB;
  --blue-hover:  #1D4ED8;
  --orange:      #F97316;
  --bg-hero:     #EEF4FF;
  --bg-page:     #F8FAFC;
  --white:       #FFFFFF;
  --gray-text:   #6B7280;
  --gray-light:  #F3F4F6;
  --gray-border: #E5E7EB;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-win:  0 8px 40px rgba(30,58,95,.18);
  --radius:      12px;
  --radius-sm:   8px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--blue-dark);
  line-height: 1.6;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ─────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-banner { height: 60px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 24px; }

.nav-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue-dark);
  font-weight: 500;
  font-size: .95rem;
  opacity: .8;
  cursor: pointer;
  transition: opacity .2s;
  font-family: inherit;
}
.nav-link:hover { opacity: 1; }

.lang-switcher { display: flex; gap: 2px; }

.lang-btn {
  background: none;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-text);
  transition: background .15s, color .15s, border-color .15s;
}
.lang-btn:hover  { background: var(--gray-light); color: var(--blue-dark); }
.lang-btn.active { background: var(--blue-cta); color: #fff; border-color: var(--blue-cta); }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.55) 26%, rgba(255,255,255,0) 48%),
    linear-gradient(145deg, #E7F0FF 0%, #F2F7FF 48%, #FFFFFF 100%);
  padding: 34px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 34px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.hero-title .highlight { color: var(--orange); }

.hero-desc {
  color: var(--gray-text);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--blue-cta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 16px rgba(37,99,235,.4); }

.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 1.5px solid var(--gray-border);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover { border-color: #b0bcd4; }

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: var(--gray-text);
}

/* -- HERO - app screenshot ---------------------------- */
.app-screenshot {
  width: 100%;
  max-width: 790px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-win);
  display: block;
  margin-left: auto;
}

/* ── FEATURES ───────────────────────────────────────── */
.features-section {
  background: transparent;
  padding: 38px 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 40px; height: 40px; }
.feature-icon.blue   { background: #EBF2FF; }
.feature-icon.blue   svg { color: var(--blue-cta); }
.feature-icon.green  { background: #ECFDF5; }
.feature-icon.green  svg { color: #059669; }
.feature-icon.orange { background: #FFF7ED; }
.feature-icon.orange svg { color: var(--orange); }

.feature-text { flex: 1; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: .9rem;
  color: var(--gray-text);
  line-height: 1.35;
}

/* ── BOTTOM BAR ─────────────────────────────────────── */
.bottom-bar {
  background: transparent;
  padding: 12px 0 34px;
}

.bottom-bar-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 12px 18px;
  backdrop-filter: blur(6px);
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-dark);
  padding: 0 18px;
}

.bar-icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bar-icon svg { width: 28px; height: 28px; }
.bar-icon.blue,
.bar-icon.green,
.bar-icon.orange,
.bar-icon.teal { background: transparent; }
.bar-icon.blue   svg { color: var(--blue-cta); }
.bar-icon.green  svg { color: #059669; }
.bar-icon.orange svg { color: var(--orange); }
.bar-icon.teal   svg { color: #0D9488; }

.bar-divider {
  width: 1px;
  height: 32px;
  background: var(--gray-border);
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--white);
  padding: 12px 0 10px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  text-decoration: none;
}
.footer-banner  { height: 42px; width: auto; }

.footer-tagline {
  font-size: .85rem;
  color: var(--gray-text);
  margin-bottom: 2px;
}

.footer-credits {
  font-size: .78rem;
  color: #9CA3AF;
  margin-top: 0;
}

/* ── ABOUT OVERLAY ──────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.open { display: flex; }

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .55);
  backdrop-filter: blur(3px);
}

.overlay-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  padding: 40px 48px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  transition: background .15s, color .15s;
}
.overlay-close:hover { background: var(--gray-border); color: var(--blue-dark); }

.overlay-logo { margin-bottom: 20px; }
.overlay-banner { height: 30px; width: auto; }

.overlay-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.overlay-subtitle {
  color: var(--gray-text);
  margin-bottom: 28px;
}
.overlay-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 8px;
}
.overlay-panel p {
  color: var(--gray-text);
  font-size: .95rem;
  line-height: 1.7;
}

.overlay-credits {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
  font-size: .82rem;
  color: #9CA3AF;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .app-screenshot { max-width: 100%; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .bar-divider { display: none; }
  .bottom-bar-items { justify-content: flex-start; gap: 20px; }
  .overlay-panel { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 36px; }
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .feature-card { flex-direction: column; }
  .feature-icon { width: 52px; height: 52px; }
  .feature-icon svg { width: 26px; height: 26px; }
}
