/* landing.css — WikiMapping public landing page
   Brand:  #177AB5 (nav blue)  #0b5e92 (dark)  #8BC441 (accent green)
*/

:root {
  --wm-blue: #177AB5;
  --wm-blue-dark: #0b5e92;
  --wm-green: #8BC441;
  --wm-green-dark: #79b035;
  --wm-bg: #ffffff;
  --wm-bg-alt: #f4f7fb;
  --wm-text: #2d3748;
  --wm-muted: #64748b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--wm-text);
  background: var(--wm-bg);
}

a { text-decoration: none; color: inherit; }

/* ── Nav ─────────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: var(--wm-blue);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 56px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; font-size: 1.2rem; font-weight: 700;
}
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-links a {
  color: #fff; padding: 0.4rem 1rem; border-radius: 4px;
  font-size: 0.9rem; transition: background 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.15); }
.nav-links .btn-nav-register {
  background: var(--wm-green); font-weight: 600;
}
.nav-links .btn-nav-register:hover { background: var(--wm-green-dark); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 4rem;
  background: url('/css/img/seville.jpg') center/cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(18,18,28,0.72);
}
.hero-inner {
  position: relative; z-index: 2; max-width: 680px;
}
.hero-logo-text {
  font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800;
  color: #fff; margin: 0 0 1rem; letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-logo-text span { color: var(--wm-green); }
.hero-inner h1 {
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800;
  line-height: 1.15; margin: 0 0 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hero-tagline {
  font-size: 1.2rem; line-height: 1.55; opacity: 0.95;
  margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  display: inline-block; padding: 0.85rem 2rem; font-size: 1.05rem;
  font-weight: 600; border-radius: 6px; transition: transform 0.15s, box-shadow 0.2s;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.btn-hero-primary { background: #fff; color: var(--wm-blue); }
.btn-hero-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.8);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Sections ────────────────────────────────────────── */
section { padding: 4.5rem 1.5rem; }
section.alt-bg { background: var(--wm-bg-alt); }
.section-inner { max-width: 1060px; margin: 0 auto; }
.section-heading {
  text-align: center; font-size: 1.85rem; font-weight: 700;
  color: var(--wm-blue); margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center; font-size: 1.05rem; color: var(--wm-muted);
  margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ── Feature Cards ───────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.feature-card {
  background: #fff; border-radius: 10px; padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #e8ecf1;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(23,122,181,0.1);
}
.feature-card .icon {
  font-size: 2.2rem; color: var(--wm-blue); margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 1.1rem; font-weight: 600; margin: 0 0 0.4rem; color: #1a202c;
}
.feature-card p { font-size: 0.92rem; color: var(--wm-muted); line-height: 1.5; margin: 0; }

/* ── Steps ───────────────────────────────────────────── */
.steps-row { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.step { flex: 1 1 220px; max-width: 300px; text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--wm-blue); color: #fff;
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.3rem; }
.step p { font-size: 0.92rem; color: var(--wm-muted); line-height: 1.5; margin: 0; }

/* ── Demo ────────────────────────────────────────────── */
.demo-section { text-align: center; }
.demo-frame {
  border-radius: 10px; overflow: hidden;
  border: 1px solid #d1d5db;
  width: 100%; height: 520px;
  margin-top: 1rem;
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; }
.demo-hint {
  font-size: 0.88rem; color: var(--wm-muted); margin-top: 0.75rem;
}

/* ── CTA Banner ──────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--wm-blue) 0%, var(--wm-blue-dark) 100%);
  color: #fff; text-align: center; padding: 4rem 1.5rem;
}
.cta-banner h2 { font-size: 1.85rem; font-weight: 700; margin: 0 0 0.75rem; }
.cta-banner p {
  font-size: 1.05rem; opacity: 0.9; margin: 0 auto 2rem;
  max-width: 520px;
}
.btn-cta {
  display: inline-block; padding: 0.9rem 2.5rem; font-size: 1.05rem;
  font-weight: 600; border-radius: 6px;
  background: var(--wm-green); color: #fff;
  transition: transform 0.15s, background 0.2s;
}
.btn-cta:hover { background: var(--wm-green-dark); transform: translateY(-2px); }

/* ── Audience Pills ──────────────────────────────────── */
.audience-row {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-top: 1.75rem;
}
.audience-pill {
  background: rgba(255,255,255,0.15); padding: 0.45rem 1.1rem;
  border-radius: 50px; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ── Footer ──────────────────────────────────────────── */
.landing-footer {
  background: #1a1a2e; color: #aaa; padding: 2rem 1.5rem;
  text-align: center; font-size: 0.85rem;
}
.landing-footer a { color: var(--wm-green); }
.landing-footer a:hover { text-decoration: underline; }
.footer-row {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: 0.75rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .landing-nav { padding: 0 1rem; }
  .nav-links .nav-section-link { display: none; }
  .hero { min-height: 75vh; padding-top: 5rem; }
  .section-heading { font-size: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }
  .demo-frame { height: 380px; }
}
@media (max-width: 480px) {
  .hero-inner h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-hero { width: 100%; max-width: 280px; text-align: center; }
  .nav-brand span { display: none; }
}
