/* Mushroom Finder — landing (matches iOS AppColors + navy hero) */
:root {
  --brand: #008a4c;
  --brand-deep: #14693e;
  --brand-glow: rgba(0, 138, 76, 0.35);
  --teal-accent: #18bd94;
  --navy: #0d2f52;
  --navy-soft: #132f4a;
  --bg-page: #f0f1f5;
  --text: #0a1014;
  --text-muted: #3d4f5c;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.22);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 50px rgba(13, 47, 82, 0.12);
  --font: system-ui, "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.06em;
}

a:hover {
  color: var(--brand-deep);
}

/* ——— Top bar ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 20px;
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(240, 241, 245, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(13, 47, 82, 0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.brand-lockup span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px;
  background: rgba(13, 47, 82, 0.08);
  border: 1px solid rgba(13, 47, 82, 0.1);
}

.lang-switch button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  padding: 100px 22px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    var(--navy) 0%,
    var(--navy-soft) 42%,
    #0a5c38 78%,
    var(--brand) 100%
  );
}

.hero-topo {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  background-image: repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(255, 255, 255, 0.04) 3px
    ),
    repeating-linear-gradient(
      8deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.03) 60px,
      rgba(255, 255, 255, 0.03) 61px
    );
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-orb--a {
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  background: var(--teal-accent);
  top: -10%;
  right: -15%;
  animation: floaty 14s ease-in-out infinite;
}

.hero-orb--b {
  width: min(50vw, 340px);
  height: min(50vw, 340px);
  background: var(--brand);
  bottom: 5%;
  left: -10%;
  animation: floaty 18s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(16px, -20px) scale(1.03);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy p.lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.btn--ghost {
  background: var(--glass);
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-scroll-hint {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  animation: fade-bob 2.4s ease-in-out infinite;
}

@keyframes fade-bob {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}

.scroll-chevron {
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -6px;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-frame {
  width: min(280px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame {
    transform: none;
  }
  .phone-frame:hover {
    transform: none;
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, #e8ebf0 0%, #d5dce6 40%, #c5d4c8 100%);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 24px;
  background: #1a1a1c;
  border-radius: 14px;
  z-index: 3;
}

.phone-map-preview {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(0, 138, 76, 0.45),
      transparent 55%
    ),
    radial-gradient(circle at 70% 60%, rgba(24, 189, 148, 0.35), transparent 50%),
    linear-gradient(160deg, #1a4d6e 0%, #0d3d2e 100%);
}

.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--brand);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  animation: pin-pulse 2.5s ease-in-out infinite;
}

.pin--1 {
  top: 38%;
  left: 44%;
}
.pin--2 {
  top: 52%;
  left: 62%;
  animation-delay: 0.6s;
}

@keyframes pin-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 20px var(--brand-glow);
  }
}

/* ——— Sections ——— */
section.content-section {
  padding: 72px 22px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-intro {
  margin: 0 0 40px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border: 1px solid rgba(13, 47, 82, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(13, 47, 82, 0.14);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(0, 138, 76, 0.12), rgba(24, 189, 148, 0.1));
  color: var(--brand-deep);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA band */
.cta-band {
  margin: 24px 22px 72px;
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  background: linear-gradient(125deg, var(--navy) 0%, #065c36 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(24, 189, 148, 0.35),
    transparent 45%
  );
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
}

.cta-band p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.btn--on-dark {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* Footer */
.site-footer {
  padding: 32px 22px 40px;
  border-top: 1px solid rgba(13, 47, 82, 0.08);
  background: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}
