/* ============================================================
   HikerScrolls Landing Page — style-landing.css
   ============================================================ */

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

:root {
  --brand:       #2d6a4f;
  --brand-light: #52b788;
  --brand-dark:  #1b4332;
  --accent:      #d4a853;
  --text:        #1c1917;
  --text-muted:  #78716c;
  --bg:          #fafaf8;
  --bg-warm:     #f5f0e8;
  --bg-card:     #ffffff;
  --border:      #e7e5e4;
  --radius:      12px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Section wrapper ──────────────────────────────────────── */
.section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: #e8f5ee;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--brand-dark);
  flex-shrink: 0;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #f0faf4 0%, #fafaf8 45%, #fdf8f0 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -180px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(82,183,136,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f5ee;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
  letter-spacing: .02em;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--brand);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(45,106,79,.25);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45,106,79,.35);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-warm);
  border-color: #c7c3be;
  transform: translateY(-1px);
}
.hero-visual {
  position: relative;
}
.hero-mockup {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-mockup-bar {
  background: #f3f2f0;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-mockup-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.hero-mockup-dot:nth-child(1) { background: #ff5f57; }
.hero-mockup-dot:nth-child(2) { background: #febc2e; }
.hero-mockup-dot:nth-child(3) { background: #28c840; }
.hero-mockup-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: #e7e5e4;
  border-radius: 4px;
  padding: 3px 10px;
  margin: 0 12px;
}
.hero-mockup-frame {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  background: var(--bg-warm);
}
.hero-stat-row {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.hero-stat { text-align: left; }
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -.02em;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── TEMPLATES ────────────────────────────────────────────── */
.templates { background: var(--bg-warm); }
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.template-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all .25s;
}
.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.template-preview {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-warm);
}
.template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.template-card:hover .template-preview img { transform: scale(1.04); }
.template-preview-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  background: linear-gradient(135deg, #e8f5ee 0%, #f5f0e8 100%);
}
.template-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.template-body { padding: 20px; }
.template-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.template-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.template-tag {
  font-size: 12px;
  color: var(--brand-dark);
  background: #e8f5ee;
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── AI FEATURES ──────────────────────────────────────────── */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .25s;
  cursor: pointer;
  position: relative;
}
.ai-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}
.ai-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f5ee, #d4ecd9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.ai-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ai-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.ai-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, margin .35s ease;
  margin-top: 0;
}
.ai-detail p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.ai-detail p:last-child { margin-bottom: 0; }
.ai-detail strong { color: var(--brand-dark); }
.ai-expanded .ai-detail {
  max-height: 300px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.ai-expand-hint {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  transition: opacity .2s;
}
.ai-expanded .ai-expand-hint { opacity: 0; height: 0; margin: 0; overflow: hidden; }
.ai-expanded {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how { background: var(--bg-warm); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(16.66% + 28px);
  width: calc(66.66% - 56px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(45,106,79,.3);
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── GPX SECTION ─────────────────────────────────────────── */
.gpx-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  max-width: 640px;
}
.gpx-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
}
.gpx-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}
.gpx-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f5ee, #d4ecd9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gpx-info { flex: 1; }
.gpx-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.gpx-platform {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}
.gpx-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.gpx-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.gpx-card:hover .gpx-arrow { transform: translateX(3px); color: var(--brand); }

/* ── DEMO SECTION ─────────────────────────────────────────── */
.demo-section { background: #1b2d24; color: #fff; padding: 96px 24px; }
.demo-section .section-label {
  background: rgba(82,183,136,.2);
  color: var(--brand-light);
}
.demo-section .section-title { color: #fff; }
.demo-section .section-sub { color: rgba(255,255,255,.65); }
.demo-frame-wrap {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.demo-bar {
  background: rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-bar-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.demo-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  padding: 3px 10px;
  margin: 0 12px;
}
.demo-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  background: #f5f0e8;
}
.demo-cta {
  text-align: center;
  margin-top: 32px;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-1px);
}

/* ── GET STARTED ──────────────────────────────────────────── */
.install-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}
.install-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.install-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.install-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.install-text { font-size: 15px; line-height: 1.6; }
.install-text strong { color: var(--brand-dark); }
.install-text code {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 13px;
}
.install-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.install-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.install-card-title .icon { font-size: 18px; }
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.req-list li { display: flex; align-items: center; gap: 8px; }
.req-list li::before { content: '✓'; color: var(--brand); font-weight: 700; }
.install-github {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-github {
  background: #24292f;
  color: #fff;
  justify-content: center;
}
.btn-github:hover {
  background: #1a1f24;
  transform: translateY(-1px);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brand-dark);
}
.footer-logo svg { width: 22px; height: 22px; }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--brand); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .templates-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .ai-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }
  .install-steps { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 16px; }
  .demo-frame { height: 400px; }
  .hero { padding: 60px 16px; }
  .hero-stat-row { gap: 20px; }
  .hero-stat-num { font-size: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
