/* Fungapp landing page
   Colors: ink #14181A, bg #FCFCFA, teal #0E8C82 / #12B4A6, lime #C7EA5A / #6FA81E */

:root {
  --bg: #FCFCFA;
  --ink: #14181A;
  --body-text: #3A4441;
  --muted: #5A6360;
  --border: #E6E7E2;
  --teal: #0E8C82;
  --teal-bright: #12B4A6;
  --lime: #C7EA5A;
  --lime-dark: #6FA81E;
  --gradient: linear-gradient(90deg, var(--lime), var(--teal-bright));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--lime-dark); }
::selection { background: var(--lime); color: var(--ink); }

img { max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* Scroll reveal */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  animation: fadeUp 720ms cubic-bezier(.22,.61,.36,1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 65%;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* Header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 64px);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .brand img {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}

.site-header .brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,0.35);
}

.site-header .actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  background: #0B1412;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6,20,18,0.90) 0%, rgba(6,20,18,0.62) 42%, rgba(8,26,24,0.18) 72%),
    linear-gradient(200deg, rgba(199,234,90,0.16), rgba(18,180,166,0.24));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 34px;
  padding: 150px clamp(20px, 5vw, 64px) 0;
  max-width: 1080px;
}

.hero-content h1 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  max-width: 20ch;
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 20px;
  border-left: 2px solid rgba(199,234,90,0.55);
}

.hero-tagline p {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(21px, 2.3vw, 31px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
  max-width: 24ch;
}

.hero-tagline p span { color: var(--lime); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  padding-top: 6px;
}

.hero-cta a { display: inline-block; }
.hero-cta a:hover { filter: brightness(1.07); }
.hero-cta img { display: block; height: 54px; }

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 60px clamp(20px, 5vw, 64px) 34px;
}

.hero-footer .credit {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  max-width: 53ch;
}

.hero-footer .scroll-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* Problem section */
.problem {
  padding: clamp(90px, 12vw, 170px) clamp(20px, 5vw, 64px);
  background: var(--bg);
}

.problem .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.problem .col-left {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.eyebrow {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow b { font-size: 14px; }

.problem h2 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.gradient-rule {
  height: 3px;
  width: 96px;
  border-radius: 999px;
  background: var(--gradient);
}

.problem .col-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 6px;
}

.problem p.lede {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.62;
  color: var(--body-text);
  max-width: 52ch;
  text-align: justify;
}

.problem p.statement {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 24ch;
}

.problem .database {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(14px, 2vw, 26px);
  padding-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--border);
}

.problem .database h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.problem .database p {
  margin: 0;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.62;
  color: var(--body-text);
  max-width: 52ch;
  text-align: justify;
}

/* Features section */
.features {
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 64px) clamp(90px, 12vw, 160px);
  background: linear-gradient(180deg, #F4F6EF 0%, #FCFCFA 55%);
}

.features .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 9vw, 130px);
}

.features-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.features-intro h2 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.features-intro p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.62;
  color: var(--body-text);
  max-width: 50ch;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-num {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.18em;
  color: var(--lime-dark);
}

.feature-num b { font-size: 35px; }

.feature-text h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.feature-text p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.62;
  color: var(--body-text);
  max-width: 46ch;
  text-align: justify;
}

.feature-shot {
  display: flex;
  justify-content: center;
}

.feature-shot .frame {
  position: relative;
  padding: 26px;
  border-radius: 46px;
}

.feature-shot .frame img {
  display: block;
  width: 100%;
  max-width: 268px;
  border-radius: 26px;
  border: 7px solid var(--ink);
  box-shadow: 0 26px 60px -22px rgba(11,20,18,0.45);
}

.frame--ia { background: linear-gradient(150deg, rgba(199,234,90,0.32), rgba(18,180,166,0.32)); }
.frame--feed { background: linear-gradient(140deg, rgba(199,234,90,0.35), rgba(18,180,166,0.28)); }
.frame--map { background: linear-gradient(160deg, rgba(18,180,166,0.26), rgba(199,234,90,0.34)); }
.frame--id { background: linear-gradient(200deg, rgba(18,180,166,0.30), rgba(199,234,90,0.32)); }

.feature-shot .stack {
  position: relative;
  padding-bottom: 54px;
  padding-right: 46px;
}

.feature-shot .stack img.primary {
  display: block;
  width: 100%;
  max-width: 262px;
  border-radius: 26px;
  border: 7px solid var(--ink);
  box-shadow: 0 26px 60px -22px rgba(11,20,18,0.45);
}

.feature-shot .stack img.secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  max-width: 168px;
  border-radius: 18px;
  border: 6px solid var(--ink);
  box-shadow: 0 22px 46px -18px rgba(11,20,18,0.5);
}

/* Team section */
.team {
  padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 64px);
  background: var(--bg);
}

.team .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 72px);
}

.team-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.team-intro h2 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.team-intro p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.62;
  color: var(--body-text);
  max-width: 54ch;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.team-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.team-card .rule {
  height: 3px;
  background: var(--gradient);
}

.team-card.reverse .rule {
  background: linear-gradient(90deg, var(--teal-bright), var(--lime));
}

.team-card .body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 3.4vw, 40px);
}

.team-card h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.team-card .role {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--teal);
}

.team-card .quote {
  margin: 0;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.62;
  color: var(--body-text);
}

.team-closing {
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(44px, 6vw, 70px) clamp(20px, 5vw, 64px) 40px;
  background: var(--bg);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.footer-brand .brand img {
  width: 34px;
  height: 34px;
  display: block;
}

.footer-brand .brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-brand .contact {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Solo la insignia de Google Play: estas tres reglas le ganaban por especificidad a las de la
   píldora de Instagram, que es el otro hijo directo de .footer-links. Le imponían
   `display:inline-block` —anulando su flex, y con él la alineación y el gap— y una altura de
   46px al ícono, que quedaba de 17x46 y empujaba el texto a una segunda línea. */
.footer-links > a:not(.footer-instagram) { display: inline-block; }
.footer-links > a:not(.footer-instagram):hover { filter: brightness(1.07); }
.footer-links > a:not(.footer-instagram) img { display: block; height: 46px; }

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  text-decoration: none;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.footer-instagram:hover { border-color: var(--teal-bright); }

.footer-instagram img {
  width: 17px;
  height: 17px;
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14.5px;
}

.footer-rule {
  max-width: 1180px;
  margin: 34px auto 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient);
}
